package com.shenma2009.controller;

import com.shenma2009.domain.ResultResponse;
import com.shenma2009.vo.IdVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * @author 军哥
 * @version 1.0
 * @description: IndexController
 * @date 2023/6/26 15:44
 */

@RestController
@Slf4j
@RequestMapping(value = "index")
public class IndexController {

    @PostMapping(value = "/add")
    public ResultResponse add(@RequestBody IdVo idVo) {
        System.out.println(idVo);

        return ResultResponse.SUCCESS(idVo);
    }

    @PostMapping(value = "/delete")
    public ResultResponse delete(@RequestBody IdVo idVo) {
        System.out.println(idVo);

        return ResultResponse.SUCCESS(idVo);
    }

    @PostMapping(value = "/update")
    public ResultResponse update(@RequestBody IdVo idVo) {
        System.out.println(idVo);

        return ResultResponse.SUCCESS(idVo);
    }

    @GetMapping(value = "/get")
    public ResultResponse get(@RequestBody IdVo idVo) {
        System.out.println(idVo);

        return ResultResponse.SUCCESS(idVo);
    }


}
